package com.czf.alibaba_seata_consumer.controller;

import com.czf.alibaba_seata_consumer.service.IHoldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: create by czf
 * @version: v1.0
 * @description: com.czf.alibaba_seata_consumer.controller
 * @date: 2020-03-28 15:50
 **/
@RestController
@RequestMapping("/hold")
public class HoldController {

    @Autowired
    IHoldService hs;

    /**
     * http://localhost:10003/hold/getHold
     * @return
     */
    @GetMapping("/getHold")
    public String getHold(){
        return hs.getAll();
    }
}
